<template>
  <div>
    <!--href 的值绑定一个变量-->
    <!-- v-bind 指令：给标签设置属性 -->
    <!--
      语法：
      v-bind:属性名="变量"
      简写：
      :属性名="变量"
    -->
    <a :href="url">去百度</a>
    <img :src="imgUrl2" alt="">
    <img :src="imgUrl" alt="">
  </div>
</template>

<script>
export default {

  data() {
    return {
      url:'https://www.baidu.com',
      imgUrl:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Faaaju.oicp.net%3A93%2Fpicture%2Fbiaoqing%2Fpic%2Fa%2F34%2F26107.jpeg&refer=http%3A%2F%2Faaaju.oicp.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1667548326&t=0d4715567fb7bdc88b476a047b9ea352',
      imgUrl2:'https://img0.baidu.com/it/u=4063820866,2129808627&fm=253&fmt=auto&app=138&f=JPEG?w=440&h=434'
    };
  },

};
</script>

<style>

</style>